home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / dbreak_c.zip / BREAK.DOC next >
Text File  |  1991-02-13  |  722b  |  27 lines

  1. Herein is a set of C callable asm routines to trap CTL-C
  2. CTL-BREAK and CTL-ALT-DEL.  The memory model is selected with a
  3. assembler line define:  masm -ML -DM_LARGE d_break.asm;  see the file
  4. model.inc for additional info.  From C the routines are handled as
  5. such:
  6.  
  7. main () {
  8.  
  9.     int break_flag;                    /* Flag to test whether CTL-C, CTL-BREAK,
  10.                                              * or CTL-ALT-DEL has been pressed.
  11.                                               */
  12.  
  13.  
  14.     break_off (&break_flag);        /* Captures the keystokes */
  15.         .
  16.         .
  17.         .
  18.     break_on ();                        /* Resumes normal DOS processing */
  19.  
  20. }
  21.  
  22. The routines have been tested and work well with the large memory
  23. model.  I've included assembled objects for those of you who don't 
  24. have an assembler.
  25.  
  26.     Have fun!
  27.